package com.cash.loan.modular.cash.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author yangbo123
 * @since 2018-07-11
 */
@TableName("cash_user")
public class CashUser extends Model<CashUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 注册手机号
     */
    private String phone;
    /**
     * 头像图片路径
     */
    private String imgUrl;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 身份证
     */
    private String idCard;
    /**
     * 实名认证 0未验证 1已实名 2实名认证失败
     */
    private Long realNameFlag;
    /**
     * 年龄
     */
    private String age;
    /**
     * 职业类型 后期码表
     */
    private String jobType;
    /**
     * 所在省 后期码表
     */
    private String province;
    /**
     * 所在市 后期码表
     */
    private String city;
    /**
     * 所在区 后期码表
     */
    private String area;
    /**
     * 是否有信用卡 0未知 1有 2没有
     */
    private Long creditCardFlag;
    /**
     * 注册来源
     */
    private String regFrom;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Long getRealNameFlag() {
        return realNameFlag;
    }

    public void setRealNameFlag(Long realNameFlag) {
        this.realNameFlag = realNameFlag;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Long getCreditCardFlag() {
        return creditCardFlag;
    }

    public void setCreditCardFlag(Long creditCardFlag) {
        this.creditCardFlag = creditCardFlag;
    }

    public String getRegFrom() {
        return regFrom;
    }

    public void setRegFrom(String regFrom) {
        this.regFrom = regFrom;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CashUser{" +
        "id=" + id +
        ", userId=" + userId +
        ", phone=" + phone +
        ", imgUrl=" + imgUrl +
        ", nickName=" + nickName +
        ", realName=" + realName +
        ", idCard=" + idCard +
        ", realNameFlag=" + realNameFlag +
        ", age=" + age +
        ", jobType=" + jobType +
        ", province=" + province +
        ", city=" + city +
        ", area=" + area +
        ", creditCardFlag=" + creditCardFlag +
        ", regFrom=" + regFrom +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        "}";
    }
}
